package com.itools.core.service;


import com.itools.core.param.FmsUploadTokenParam;
import com.itools.core.result.FmsUploadTokenResult;
import com.itools.core.result.FmsBusinessTypeResult;

import java.util.List;

/**
 * @description:
 * @author: XUCHANG
 * @create: 2021-04-01 11:26
 */
public interface FmsBusinessTypeService {

    /**
     * 查询FsBusinessType列表
     *
     * @param businessType
     * @return
     */
    List<FmsBusinessTypeResult> queryFsBusinessTypeList(String businessType);

    /**
     * 根据 uploadToken ，缓存FsBusinessType对象
     *
     * @param uploadToken
     * @return
     */
    FmsUploadTokenResult cacheFsUploadToken(String uploadToken, FmsUploadTokenParam fsUploadToken);

    /**
     * 根据 uploadToken ，获取FsBusinessType对象
     *
     * @param uploadToken
     * @return
     */
    FmsUploadTokenResult getFsBusinessTypeByUploadToken(String uploadToken);

    void deleteFsBusinessTypeByUploadToken(String uploadToken);
}
